import { createPinia } from "pinia"
// 数据持久化
import { createPersistedState } from "pinia-plugin-persistedstate"

const store = createPinia()
store.use(
	createPersistedState({
		storage:{
			getItem: uni.getStorageSync,
			setItem: uni.setStorageSync,
		}
	})
)


export * from './modules/count'
export {store};
export function setupStore(app){
	app.use(store)
}
// export function setupStore(app)